dojo.declare("MainPage", turbo.Part, {
	start: function() {
		this.setPalette("Sea");
	},
	setPalette: function (themeName) {
		dojo.removeClass(document.body, this.theme);
		this.theme = themeName + "Theme";
		dojo.addClass(document.body, this.theme);
	},
	selectThemeChange: function(inSender, inDisplayValue, inDataValue) {
		this.setPalette(inDisplayValue);
	},
	menuClick: function(inSender) {
		// slice(1) removes the fist character ("#") from the link string
		this.setPalette(inSender.link.slice(1));			
	},	
	_end: 0
});